import portal from 'components/pages/master';
import login from 'components/base/login';
import index from 'components/pages/index';

const NotFoundComponent = () => import(/* webpackChunkName: "NotFoundComponent" */ 'components/base/404');
const viewer = () => import(/* webpackChunkName: "viewer" */ 'components/pages/test/viewerTest');
export default {
  routes: [
    { path: '*', redirect: '/error' },
    { path: '/', component: login },
    { path: '/viewer', component: viewer },
    { path: '/error', component: NotFoundComponent },
    { path: '/portal',
      component: portal,
      children: [
        { path: '/', component: index },
      ],
    },
  ],
};
